/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bayu.services.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Fikri
 */
@Entity
@Table(name = "avg_moulding")
@NamedQueries({@NamedQuery(name = "AvgMoulding.findAll", query = "SELECT a FROM AvgMoulding a"), @NamedQuery(name = "AvgMoulding.findById", query = "SELECT a FROM AvgMoulding a WHERE a.id = :id"), @NamedQuery(name = "AvgMoulding.findByA", query = "SELECT a FROM AvgMoulding a WHERE a.a = :a"), @NamedQuery(name = "AvgMoulding.findByB", query = "SELECT a FROM AvgMoulding a WHERE a.b = :b"), @NamedQuery(name = "AvgMoulding.findByC", query = "SELECT a FROM AvgMoulding a WHERE a.c = :c"), @NamedQuery(name = "AvgMoulding.findByD", query = "SELECT a FROM AvgMoulding a WHERE a.d = :d"), @NamedQuery(name = "AvgMoulding.findByE", query = "SELECT a FROM AvgMoulding a WHERE a.e = :e"), @NamedQuery(name = "AvgMoulding.findByF", query = "SELECT a FROM AvgMoulding a WHERE a.f = :f"), @NamedQuery(name = "AvgMoulding.findByG", query = "SELECT a FROM AvgMoulding a WHERE a.g = :g"), @NamedQuery(name = "AvgMoulding.findByH", query = "SELECT a FROM AvgMoulding a WHERE a.h = :h"), @NamedQuery(name = "AvgMoulding.findByI", query = "SELECT a FROM AvgMoulding a WHERE a.i = :i"), @NamedQuery(name = "AvgMoulding.findByType", query = "SELECT a FROM AvgMoulding a WHERE a.type = :type"), @NamedQuery(name = "AvgMoulding.findByDate", query = "SELECT a FROM AvgMoulding a WHERE a.date = :date")})
public class AvgMoulding implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Long id;
    @Column(name = "a")
    private Double a;
    @Column(name = "b")
    private Double b;
    @Column(name = "c")
    private Double c;
    @Column(name = "d")
    private Double d;
    @Column(name = "e")
    private Double e;
    @Column(name = "f")
    private Double f;
    @Column(name = "g")
    private Double g;
    @Column(name = "h")
    private Double h;
    @Column(name = "i")
    private Double i;
    @Column(name = "type")
    private String type;
    @Column(name = "date")
    @Temporal(TemporalType.DATE)
    private Date date;

    public AvgMoulding() {
    }

    public AvgMoulding(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Double getA() {
        return a;
    }

    public void setA(Double a) {
        this.a = a;
    }

    public Double getB() {
        return b;
    }

    public void setB(Double b) {
        this.b = b;
    }

    public Double getC() {
        return c;
    }

    public void setC(Double c) {
        this.c = c;
    }

    public Double getD() {
        return d;
    }

    public void setD(Double d) {
        this.d = d;
    }

    public Double getE() {
        return e;
    }

    public void setE(Double e) {
        this.e = e;
    }

    public Double getF() {
        return f;
    }

    public void setF(Double f) {
        this.f = f;
    }

    public Double getG() {
        return g;
    }

    public void setG(Double g) {
        this.g = g;
    }

    public Double getH() {
        return h;
    }

    public void setH(Double h) {
        this.h = h;
    }

    public Double getI() {
        return i;
    }

    public void setI(Double i) {
        this.i = i;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof AvgMoulding)) {
            return false;
        }
        AvgMoulding other = (AvgMoulding) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bayu.services.entity.AvgMoulding[id=" + id + "]";
    }

}
